/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wiai.untl.core.entity;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

/**
 *
 * @author Hendro Steven
 */
@Entity
public class Fakultas implements Serializable {
    @OneToMany(mappedBy = "fakultas")
    private List<Departemen> departemens;
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String kodeFakultas;
    private String namaFakultas;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

   

    @Override
    public String toString() {
        return "("+this.getKodeFakultas()+") "+this.getNamaFakultas();
    }

    /**
     * @return the kodeFakultas
     */
    public String getKodeFakultas() {
        return kodeFakultas;
    }

    /**
     * @param kodeFakultas the kodeFakultas to set
     */
    public void setKodeFakultas(String kodeFakultas) {
        this.kodeFakultas = kodeFakultas;
    }

    /**
     * @return the namaFakultas
     */
    public String getNamaFakultas() {
        return namaFakultas;
    }

    /**
     * @param namaFakultas the namaFakultas to set
     */
    public void setNamaFakultas(String namaFakultas) {
        this.namaFakultas = namaFakultas;
    }

    /**
     * @return the departemens
     */
    public List<Departemen> getDepartemens() {
        return departemens;
    }

    /**
     * @param departemens the departemens to set
     */
    public void setDepartemens(List<Departemen> departemens) {
        this.departemens = departemens;
    }
    
}
